<link rel="stylesheet" href="__PUBLIC__/admin/css/bootstrap.css">
<div class="content" > 
                <div class="operation">
                    <div class="pull-left">
                        <!-- <button class="add"><span class="glyphicon glyphicon-plus"></span>添加</button> -->
                        <!-- <button data-toggle="modal" data-target=".bs-example-modal-lg"><span class="glyphicon glyphicon-plus"></span>添加</button> -->
                        <!-- <button><span class="glyphicon glyphicon-trash"></span>删除</button> -->
                    </div>
                    <div class="right-box">
                        <input type="search" placeholder="代理商搜索..." name="search" class="search" value="{$search}">
                        <span class="glyphicon glyphicon-search" id="sub"></span>
                    </div>
                </div>
                <table class="table agent">
                    <tbody>
                    <tr>
                        <volist name="header" id="vo">
                            <th>{$vo}
                                <span>
                                    <a class="glyphicon glyphicon-triangle-top"></a>
                                    <a class="glyphicon glyphicon-triangle-bottom"></a>
                                </span>
                            </th>
                        </volist>
                        <th>操作
                            <span>
                                <a class="glyphicon glyphicon-triangle-top"></a>
                                <a class="glyphicon glyphicon-triangle-bottom"></a>
                            </span>
                        </th>
                    </tr>
                        <volist name="list" id="vo">
                        <tr>
                            <volist name="vo" id="v">
                                <td>{$v}</td>
                            </volist>
                        </tr>
                        </volist>       
                </tbody>
                </table>
                <div class="page">
                    <span>共 {$count} 条</span>
                    <div class="paging">
                        {$page}
                    </div>
                    前往<input type="text" value="{$p}" name='page' onchange="mychange()">页
                </div>    
            </div>
<script type="text/javascript">
    $("#sub").click(function(){
        var search = $('.search').val();
        window.location.href = "/Admin/Agent/ptindex.html?search="+search;
    });

    function mychange(){
      var page =  $('input[name="page"]').val();
      window.location.href = "/index.php/Admin/Agent/ptindex/p/"+page;
    }


</script>       